package yf.mall.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

import yf.mall.dao.OrderItemDao;
import yf.mall.entity.OrderItemEntity;
import yf.mall.service.OrderItemService;
import com.yf.service.impl.BaseServiceImpl;

/**
 * 订单详情Service实现类
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Aug 13 14:26:20 CST 2019
 */
@Service
public class OrderItemServiceImpl extends BaseServiceImpl<OrderItemEntity> implements OrderItemService {

    private OrderItemDao orderItemDao;


    @Autowired
    public void setDao(OrderItemDao orderItemDao) {
        this.orderItemDao = orderItemDao;
        super.setBaseDao(orderItemDao);
    }



    /**内部方法**/


    /**外部方法实现**/

    @Override
    public List<OrderItemEntity> findByOrderId(Long id) {
        return orderItemDao.findByOrderId(id);
    }
}
